package com.wmyg.antifake.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 王卓逸
 * @program TODO
 * @description 短信验证码请求参数接收对象
 * @create 2019-04-18
 */
@Data
public class SmsCodeDto {

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "手机号码不正确")
    private String phone;

    @NotNull
    private Integer type;//0.用户注册 1.修改密码

}
